#encoding:utf-8
from app import app,db

#十二时辰表
class TwelveHour(db.Model):
    __tablename__ = 'twelve_hour'
    id = db.Column(db.Integer,primary_key=True)
    timePoint = db.Column(db.Integer) #时间点 1-24
    codeName = db.Column(db.String(16)) #时间代号 子丑寅卯。。

#八字对照表
class BaziTable(db.Model):
    __tablename__ = 'bazi_table'
    id = db.Column(db.Integer,primary_key=True)
    codeName = db.Column(db.String(16)) #时间代号 子丑寅卯。。
    dayCode = db.Column(db.String(16)) #日期代号 甲乙丙丁
    seventh = db.Column(db.String(16)) #第七个字
    eighth = db.Column(db.String(16)) #第八个字

#五行表
class WuXing(db.Model):
    __tablename__ = 'wu_xing'
    id = db.Column(db.Integer,primary_key=True)
    attriBute =  db.Column(db.String(16)) #五行 金木水火土
    dayCode = db.Column(db.String(16)) 

#字典
class ZiDian(db.Model):
    __tablename__ = 'zidian'
    id = db.Column(db.Integer,primary_key=True)
    hanzi = db.Column(db.String(1))
    wubi = db.Column(db.String(50))
    bushou = db.Column(db.String(50))
    bihuashu = db.Column(db.Integer)
    bihuashu_s = db.Column(db.Integer)
    pinyin = db.Column(db.String(50))
    jianjie = db.Column(db.Text)
    xiangjie = db.Column(db.Text)












